package com.sllp.C71S3TsllpShop.bean;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;

public class Orders {

	private Integer id;

    private String orderId;

    private BigDecimal total;

    private Timestamp orderTime;

    private Integer addr;

    private Integer user;
    
    private List<OrdersItem> ordersitem; 
    
    private Address address;


    public Orders(Integer id, String orderId, BigDecimal total, Timestamp orderTime, Integer addr, Integer user) {
        this.id = id;
        this.orderId = orderId;
        this.total = total;
        this.orderTime = orderTime;
        this.addr = addr;
        this.user = user;
    }

    public Orders() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId == null ? null : orderId.trim();
    }

    public BigDecimal getTotal() {
        return total;
    }

    public void setTotal(BigDecimal total) {
        this.total = total;
    }

    public Timestamp getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Timestamp orderTime) {
        this.orderTime = orderTime;
    }

    public Integer getAddr() {
        return addr;
    }

    public void setAddr(Integer addr) {
        this.addr = addr;
    }

    public Integer getUser() {
        return user;
    }

    public void setUser(Integer user) {
        this.user = user;
    }

	public List<OrdersItem> getOrdersitem() {
		return ordersitem;
	}

	public void setOrdersitem(List<OrdersItem> ordersitem) {
		this.ordersitem = ordersitem;
	}

	
	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}
}